package cn.hh.hrm.feign;


import cn.hh.hrm.domain.LoginUser;
import cn.hh.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "HRM-AUTH",fallbackFactory = LoginUserFallBackFactory.class)
@RequestMapping("/loginUser")
public interface ILoginUserFeignClient {
    @PutMapping
    AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);
}
